﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PrototypeZGame
{
    public class Weapon : InventoryItem
    {
        public float damage;
        public bool isMelee;
        public float EC;
        public TileType tileTypeMini;

        public Weapon(int X, int Y, World world)
            : base(X, Y, world)
        {
            int r = world.rand.Next(3);
            
            if (r == 0)
            {
                // Stick
                tileType = TileType.Stick;
                tileTypeMini = TileType.Stick_Mini;
                damage = 3;
                isMelee = true;
                EC = 4;
                name = "Stick";
                description = "Once a broom, now a weapon!";                
            }
            else if (r == 1)
            {
                // Practice Sword
                tileType = TileType.PracticeSword;
                tileTypeMini = TileType.PracticeSword_Mini;
                damage = 4;
                isMelee = true;
                EC = 3;
                name = "Practice sword";
                description = "Solid wooden sword used for training.";
            }
            else if (r == 2)
            {
                // Shovel
                tileType = TileType.Shovel;
                tileTypeMini = TileType.Shovel_Mini;
                damage = 5;
                isMelee = true;
                EC = 5;
                name = "Shovel";
                description = "Gardener vs zombies.";
            }

        }
    }


}
